<template>
	<view class="content" style="margin-top: 200rpx">
		<feng-seal ref="seal" inCircle size="400px" imageType="base64"  :companyText="companyText" :sealCode="sealCode" :sealText="sealText"></feng-seal>

		<image style="width: 400rpx; height: 400rpx" :src="base64"></image>
		<button @click="make">生成图片</button>
	</view>
</template>

<script>
export default {
	data() {
		return {
			base64: '',
			companyText: '测试网络信息科技有限公司',
			sealCode: '123456789123456789',
			sealText: '测试专用章',
		};
	},
	methods: {
		make() {
			this.$refs.seal.make().then((res) => {
				console.log(res);
				this.base64 = res.tempFilePath;
			});
		}
	}
};
</script>

<style></style>
